if !exists('loaded_snippet') || &cp
    finish
endif

let st = g:snip_start_tag
let et = g:snip_end_tag
let cd = g:snip_elem_delim

exec "Snippet debug $c->log->debug('".st."name".et.": '. \$".st."var".et.");<CR>".st.et
exec "Snippet warn $c->log->warn('".st."name".et.": '. \$".st."var".et.");<CR>".st.et
exec "Snippet dumper $c->log->dumper('".st."name".et.": '. \$".st."var".et.");<CR>".st.et
exec "Snippet model $c->model('".st."model".et."')".st.et
exec "Snippet view $c->view('".st."model".et."')".st.et
exec "Snippet config $c->config->{".st."name".et."}".st.et
exec "Snippet controller sub ".st."func".et." : ".st."Attribute".et." {<CR>my ($self, $c) = @_;<CR>".st.et."<CR>}<CR>".st.et
exec "Snippet begin sub begin : Private {<CR>my ($self, $c) = @_;<CR>".st.et."<CR>1;<CR>}<CR>".st.et
exec "Snippet auto sub auto : Private {<CR>my ($self, $c) = @_;<CR>".st.et."<CR>1;<CR>}<CR>".st.et
exec "Snippet detach $c->detach('".st."name".et."');<CR>".st.et
exec "Snippet forward $c->forward('".st."name".et."');<CR>".st.et
exec "Snippet stash $c->stash->{".st."var".et."}".st.et
exec "Snippet flash $c->flash->{".st."var".et."}".st.et
exec "Snippet session $c->session->{".st."var".et."}".st.et
exec "Snippet sstash $c->stash->{".st."var".et."} = ".st.et.";<CR>".st.et
exec "Snippet sflash $c->flash->{".st."var".et."} = ".st.et.";<CR>".st.et
exec "Snippet ssession $c->session->{".st."var".et."} = ".st.et.";<CR>".st.et
exec "Snippet rs $c->model('DBIC::".st."Source".et."')".st.et
exec "Snippet redirect $c->res->redirect($c->uri_for('".st."uri".et."'));<CR>".st.et
exec "Snippet param $c->req->param('".st."param".et."')".st.et
